package com.swf.seed.spring.mail;

import javax.mail.MessagingException;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringMailTest {
	public static void main(String[] args) throws MessagingException {
		ApplicationContext ac = new ClassPathXmlApplicationContext("springMail.xml");
		SpringMail mail = ac.getBean("mail",SpringMail.class);
		//mail.sendSimpleMessage("Hello world","Hello world via spring mail sender");
		//mail.sendHTMLMessage("Hello world","Hello world via spring mail sender");
		//mail.sendAttachImageMessage();
		mail.sendAttachFileMessage();
	}
}
